package com.wang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Classname Employee
 * @Description TODO
 * @Date 2024/5/29 9:57
 * @Created by pc
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Employee implements Serializable {
    /**
     * 员工编号
     */
    private Long id;

    /**
     * 员工名称
     */
    private String username;

    /**
     * 合同期限
     */
    private Integer contractTerm;

    /**
     * 员工薪水
     */
    private Double salary;

    /**
     * 合同起始日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginContact;

    /**
     * 合同截止日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endContact;

    /**
     * 部门名称
     */
    private String departmentName;

    /**
     * 职位名称
     */
    private String posName;
}
